package com.zbs.framework.dao.passport.entity;

import java.io.Serializable;

/**
 * 登录记录主键类
 */

public class MNLoginRecordId implements Serializable{
    private static final long serialVersionUID = 6584672683143236904L;

    private String uuid;
    private String entryType;

    public MNLoginRecordId() {
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getEntryType() {
        return entryType;
    }

    public void setEntryType(String entryType) {
        this.entryType = entryType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MNLoginRecordId)) return false;

        MNLoginRecordId that = (MNLoginRecordId) o;

        if (getUuid() != null ? !getUuid().equals(that.getUuid()) : that.getUuid() != null) return false;
        return getEntryType() != null ? getEntryType().equals(that.getEntryType()) : that.getEntryType() == null;
    }

    @Override
    public int hashCode() {
        int result = getUuid() != null ? getUuid().hashCode() : 0;
        result = 31 * result + (getEntryType() != null ? getEntryType().hashCode() : 0);
        return result;
    }
}
